package com.cjm.one.order.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjm.one.model.goods.dto.StockRevertDTO;
import com.cjm.one.model.order.entity.OrderItem;

import java.util.List;

/**
* @author 29289
* @description 针对表【order_item(订单项信息)】的数据库操作Mapper
* @createDate 2024-09-05 16:11:25
* @Entity com.one.order.entity.OrderItem
*/
public interface OrderItemMapper extends BaseMapper<OrderItem> {

    void batchInsert(List<OrderItem> items);

    List<StockRevertDTO> selectSkuIdsByOrder(Long aLong);

    List<StockRevertDTO> selectRevertInfoByOrder(Long orderId);

    void updateRevertStatus(Long orderId, List<StockRevertDTO> revertList);
}




